package at.fhj.swd11.leitner.ue2;

public class Cd extends Artikel {
	
	private String artist;
	private String[] songs;
	
	public Cd (int code, String artist, String[] songs, int price) {
		super(code, artist, price);
		this.artist = artist;
		this.songs=songs;
		
	}
	
	public void showInfo() {
		super.showInfo();
		System.out.println("Type: CD");
		System.out.println("Artist:" +artist);
		for(String song:songs){
			System.out.println("Song: "+song);
		}
	}

}
